* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    // font-family: monospace;
    // font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', source-han-serif-sc, 'PT Serif', 'SongTi SC', 'MicroSoft Yahei', Georgia, serif;
    font-family: '微软雅黑', Helvetica, NotoSansHans-Regular, ArialMT, '思源黑体', '冬青黑体', '苹方', Arail, Tabhoma, '华文黑体', '黑体' !important;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0 !important;
}

img {
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    //   mix-blend-mode: multiply;
    object-fit: cover;
    -o-object-fit: cover;
}

a {
    text-decoration: none;

    &:hover {
        text-decoration: none !important;
    }
}

// padding
.p-t-55 {
    padding-top: 55px;
}

// 卡片
.col {
    padding: 0 5px;
}

@media (min-width: 800px) {
    .col {
        padding: 0 10px;
        display: inline-block;
    }

    .md-3 {
        width: 25%;
    }

    .md-6 {
        width: 50%;
    }

    .md-12 {
        width: 100%;
    }


}

// 全局页面样式
.page-container {
    height: 100%;
    display: flex;
    flex-direction: column;

    .main {
        flex: 1;
    }

    .footer {
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        line-height: 30px;
    }
}


// 文章卡片
.card-list {
    position: relative;
    box-sizing: content-box;

    .card-item {
        position: absolute;
        -webkit-transition-duration: 0.5s;
        transition-duration: 0.5s;

        .card-inner {
            position: relative;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 5px;
        }

        img {
            width: 100%;
            height: 100%;
        }

        .card-cover {
            max-height: 300px;
            overflow: hidden;
            padding: 10px 10px 0;
        }

        .card-star {
            position: absolute;
            left: -10px;
            top: -10px;
            width: 65px;
            height: 65px;
            overflow: hidden;

            .star {
                width: 200px;
                left: -75px;
                top: 15px;
                text-align: center;
                padding: 2px 0;
                position: relative;
                color: #fff;
                font-weight: 600;
                background-image: linear-gradient(90deg, #36a8f1, #f488a7);
                text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
                box-shadow: 0 5px 10px rgb(0 0 0 / 10%);
                transform: rotate(-45deg);
                // z-index: 1;
            }

            &::before {
                content: '';
                position: absolute;
                top: 0;
                right: 0;
                border: 5px solid #3d4852;
                border-top-color: transparent;
                border-left-color: transparent;
                border-color: #b18585;
            }

            &::after {
                content: '';
                display: block;
                width: 0;
                height: 0;
                border: 5px solid transparent;
                border-left-color: #8386eb;
                position: absolute;
                bottom: -5px;
                left: 5px;
                transform: rotate(45deg);
            }
        }

        .card-info {
            padding: 10px 10px 10px;
            color: #606f7b;
            font-family: '微软雅黑', Helvetica, NotoSansHans-Regular, ArialMT, '思源黑体',
                '冬青黑体', '苹方', Arail, Tabhoma, '华文黑体', '黑体';

            .card-info_hd {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 10px 15px;
                border-bottom: 1px solid #ddd;

                .card-title {
                    color: #52768e;
                    font-size: 17px;
                    font-weight: bold;
                    max-width: 200px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }

                .card-browse {
                    padding: 2px 10px;
                    color: #fff;
                    font-size: 12px;
                    background-color: #ffaa73;
                    border-radius: 10px;
                }
            }

            .card-info_bd {
                padding: 10px 15px;
                letter-spacing: 2px;
                text-indent: 2em;
            }

            .card-info_ft {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 10px 15px;
                border-top: 1px solid #ddd;

                .crad-time {
                    min-width: 115px;
                    padding: 2px 10px;
                    color: #fff;
                    font-size: 12px;
                    background-color: #ff4e6a;
                    border-radius: 10px;
                }

                .card-tags {
                    max-width: 200px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;

                    span {
                        font-size: 12px;
                        color: #606f7b;
                        display: inline-block;
                        padding: 1px 10px;
                        border-radius: 30px;
                        margin-left: 5px;
                        background-color: #fff;
                        border: 1px solid #ddd;
                    }
                }
            }
        }

        &:hover {
            -webkit-transform: scale(0.9);
            transform: scale(0.9);
            -webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
            transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
        }

        @media (max-width:768px) {
            max-width: 300px;
            left: 50% !important;
            transform: translateX(-50%);
        }
    }
}


// 留言板块
.comment-wrap {
    background-color: rgba(255, 255, 255, 0.9);
    margin: 10px;
    padding: 20px;
    border-radius: 10px;

    ol,
    ul,
    li {
        list-style-type: none;
    }

    p {
        margin: 0;
    }


    .comment-title {
        display: flex;
        align-items: center;
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 2.5rem !important;
        color: #34495e;
        font-weight: bold;

        svg {
            margin-right: 5px;
        }
    }

    .comment-list {
        .comment-item {
            display: flex;
            margin-bottom: 20px;
        }

        .comment-avatar {
            margin-right: 1rem;

            img {
                width: 50px;
                height: 50px;
                border-radius: 50%;
            }
        }

        .comment-content {
            flex: 1;
            -webkit-box-flex: 1;
            -ms-flex: 1;
            border: 1px solid #ecf0f1;
            font-size: 13px;
            box-shadow: 2px 2px 15px #d2e7fd;
            -webkit-box-shadow: 2px 2px 15px #d2e7fd;
            border-radius: 5px;

            .comment_hd {
                background: #ecf0f1;

                .comment_info {
                    color: #606f7b;

                    .name {
                        display: flex;

                        p {
                            display: flex;
                            align-items: center;
                            color: #f7576c;

                            i {
                                margin-right: 3px;
                            }
                        }
                    }

                    .time {
                        display: flex;
                        align-items: center;
                        font-size: 12px;

                        i {
                            margin-right: 3px;
                        }
                    }
                }

                .comment_floor {
                    color: #f7576c;
                    font-weight: bold;
                }
            }

            .comment_bd {
                padding: 15px 25px;
                font-size: 16px;
            }

            .comment_ft {
                display: flex;
                justify-content: right;
                padding: 0px 25px 8px;
                font-size: 18px;

                p {
                    padding: 2px;
                    cursor: pointer;

                    svg {
                        fill: #7f8c8d;
                        transition: all 0.3s;
                    }

                    &:hover svg {
                        fill: #34495e;
                    }
                }
            }
        }

        .comment-original {
            .comment_bd {
                p {
                    padding: 18px;
                    color: #f7f7f7;
                    background: #282a36;
                    border-top: 20px solid #222329;
                    font-size: 13px;
                }
            }
        }

        .comment-reply {
            .comment-reply-item {
                border: 1px solid #ecf0f1;
            }

            .comment_bd {
                p {
                    padding: 18px;
                    border: 0;
                    color: #606f7b;
                    font-size: 13px;
                }
            }
        }
    }
}

.reply-wrap {
    margin: 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid #d2d8d9;

    .post-reply_name {
        margin: 0 10px;
        color: #f7576c;
        font-weight: bolder;
    }

    .post-content {
        padding: 15px;
    }
}

@media (min-width: 800px) {
    .comment-wrap {
        .comment_hd {
            padding: 8px 18px;

            .comment_info {
                display: flex;
                justify-content: space-between;

                .name {
                    span {
                        margin: 0 10px;
                    }
                }
            }
        }

        .comment-reply {
            .comment-reply-item {
                margin: 0 20px 20px;
                border-radius: 5px;
            }
        }
    }
}

@media (max-width: 800px) {
    .comment-wrap {
        .comment-list {
            .comment-avatar {
                img {
                    width: 30px;
                    height: 30px;
                }
            }
        }

        .comment_hd {
            padding: 8px !important;

            .comment_info {
                font-size: 12px;
            }

            .comment_floor {
                display: none;
            }
        }

        .comment_bd {
            padding: 8px !important;

            p {
                padding: 8px !important;
            }
        }

        .comment_ft {
            padding: 0 8px !important;
        }
    }

    .comment-reply {
        .comment_hd {
            .name {
                span {
                    margin: 0 5px;
                }
            }
        }

        .comment_bd {
            p {
                padding: 0 !important;
                margin: 0 !important;
            }
        }

        .comment_ft {
            p {
                margin: 0 !important;
            }
        }
    }
}

// 分页
.comment-pagination {
    justify-content: center;
}